package com.muy.redis.view.window.redis.editor;

import com.intellij.icons.AllIcons;
import com.intellij.openapi.fileTypes.FileType;
import com.intellij.openapi.util.NlsContexts;
import com.intellij.openapi.util.NlsSafe;
import org.jetbrains.annotations.NonNls;
import org.jetbrains.annotations.NotNull;

import javax.swing.*;

/**
 * @Author jiyanghuang
 * @Date 2023/10/9 22:46
 */
public class JsonFileType implements FileType {

    @Override
    public @NonNls @NotNull String getName() {
        return "Json Tab";
    }

    @Override
    public @NlsContexts.Label @NotNull String getDescription() {
        return "Json Operation";
    }

    @Override
    public @NlsSafe @NotNull String getDefaultExtension() {
        return null;
    }

    @Override
    public Icon getIcon() {
        return AllIcons.FileTypes.Json;
    }

    @Override
    public boolean isBinary() {
        return false;
    }
}
